package com.zl.learning.maven.javapack;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;
import java.util.concurrent.TimeUnit;

public class App {
    public static void main(String[] args) {
        try {
            Document doc = Jsoup.connect("https://www.cnblogs.com/dzblog/p/6913809.html").get();
            System.out.println(doc.body());

            Properties prop2 = new Properties();
            prop2.load(new InputStreamReader(App.class.getResourceAsStream("/prop.conf"), StandardCharsets.UTF_8));
            System.out.println(prop2.getProperty("username"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
